package sgi.message;

import java.io.Serializable;
import java.util.HashMap;

/**sets query for receiving tariffs*/
public class MessageRetrieveTariff extends Message {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	
	private TariffRow currentTariff,pendingTariff;
	private boolean sellManager;
	
	public boolean hasPendings() {
		return this.pendingTariff != null;
	}
	
	public TariffRow getCurrentTariff() {
		return currentTariff;
	}


	public void setCurrentTariff(TariffRow currentTariff) {
		this.currentTariff = currentTariff;
	}


	public TariffRow getPendingTariff() {
		return pendingTariff;
	}

	public void setPendingTariff(TariffRow pendingTariff) {
		this.pendingTariff = pendingTariff;
	}
	

	public boolean isSellManager() {
		return sellManager;
	}

	public MessageRetrieveTariff(boolean isSellManager) {
		super("SELECT * FROM sgi.tariff");	
		sellManager = isSellManager;
	}
	
	
	public static class TariffRow implements Serializable {		
		/**
		 * 
		 */
		private static final long serialVersionUID = 1L;
		
		private float image,timeLocation,imagePack,dataLayer;
		private int status;
				
		public int getStatus() {
			return status;
		}

		public void setStatus(int status) {
			this.status = status;
		}

		public float getImage() {
			return image;
		}

		public void setImage(float image) {
			this.image = image;
		}

		public float getTimeLocation() {
			return timeLocation;
		}

		public void setTimeLocation(float timeLocation) {
			this.timeLocation = timeLocation;
		}

		public float getImagePack() {
			return imagePack;
		}

		public void setImagePack(float imagePack) {
			this.imagePack = imagePack;
		}

		public float getDataLayer() {
			return dataLayer;
		}

		public void setDataLayer(float dataLayer) {
			this.dataLayer = dataLayer;
		}		
	}
}
